.class public Ldgb/m4;
.super Ljava/lang/Object;
.source "SourceFile"


# static fields
.field private static volatile c:Ldgb/m4;


# instance fields
.field private a:Landroid/content/Context;

.field private b:Z


# direct methods
.method private constructor <init>(Landroid/content/Context;)V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object p1

    iput-object p1, p0, Ldgb/m4;->a:Landroid/content/Context;

    .line 3
    invoke-static {p1}, Ldgb/g4;->a(Landroid/content/Context;)Ldgb/g4;

    move-result-object p1

    .line 4
    invoke-virtual {p1}, Ldgb/g4;->a()Z

    move-result p1

    if-nez p1, :cond_1

    .line 5
    sget-boolean p1, Ldgb/z;->b:Z

    if-eqz p1, :cond_0

    const-string p1, "stat.Core"

    const-string v0, "The app is in silent period!"

    .line 6
    invoke-static {p1, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    :cond_0
    const/4 p1, 0x0

    .line 7
    iput-boolean p1, p0, Ldgb/m4;->b:Z

    goto :goto_0

    :cond_1
    const/4 p1, 0x1

    .line 8
    iput-boolean p1, p0, Ldgb/m4;->b:Z

    :goto_0
    return-void
.end method

.method public static a(Landroid/content/Context;)Ldgb/m4;
    .locals 2

    .line 1
    const-class v0, Ldgb/m4;

    monitor-enter v0

    .line 2
    :try_start_0
    sget-object v1, Ldgb/m4;->c:Ldgb/m4;

    if-nez v1, :cond_0

    .line 3
    new-instance v1, Ldgb/m4;

    invoke-direct {v1, p0}, Ldgb/m4;-><init>(Landroid/content/Context;)V

    sput-object v1, Ldgb/m4;->c:Ldgb/m4;

    .line 4
    :cond_0
    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 5
    sget-object p0, Ldgb/m4;->c:Ldgb/m4;

    return-object p0

    :catchall_0
    move-exception p0

    .line 6
    :try_start_1
    monitor-exit v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw p0
.end method


# virtual methods
.method public a()Z
    .locals 7

    .line 7
    new-instance v6, Ldgb/u;

    iget-object v0, p0, Ldgb/m4;->a:Landroid/content/Context;

    const-string v1, "start"

    .line 8
    invoke-static {v0, v1}, Ldgb/k;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    const/4 v1, 0x0

    const/4 v2, 0x2

    const/4 v3, 0x1

    const/4 v5, 0x1

    move-object v0, v6

    invoke-direct/range {v0 .. v5}, Ldgb/u;-><init>(IIILjava/lang/String;I)V

    const/4 v0, 0x1

    .line 9
    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    invoke-virtual {p0, v6, v0}, Ldgb/m4;->a(Ldgb/u;Ljava/lang/Object;)Z

    move-result v0

    return v0
.end method

.method public a(Ldgb/u;Ljava/lang/Object;)Z
    .locals 1

    .line 38
    iget-boolean v0, p0, Ldgb/m4;->b:Z

    if-nez v0, :cond_1

    .line 39
    sget-boolean p1, Ldgb/z;->c:Z

    if-eqz p1, :cond_0

    const-string p1, "stat.Core"

    const-string p2, "The service is not start up!"

    .line 40
    invoke-static {p1, p2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    :cond_0
    const/4 p1, 0x0

    return p1

    .line 41
    :cond_1
    new-instance v0, Ldgb/k;

    invoke-direct {v0, p1, p2}, Ldgb/k;-><init>(Ldgb/u;Ljava/lang/Object;)V

    .line 42
    iget-object p1, p0, Ldgb/m4;->a:Landroid/content/Context;

    invoke-static {p1}, Ldgb/n4;->a(Landroid/content/Context;)Ldgb/n4;

    move-result-object p1

    invoke-virtual {p1, v0}, Ldgb/n4;->a(Ldgb/k;)Z

    move-result p1

    return p1
.end method

.method public a(Ljava/lang/String;IIILjava/lang/Object;)Z
    .locals 12

    move-object v0, p0

    move-object v1, p1

    move v4, p2

    move-object/from16 v7, p5

    .line 12
    iget-boolean v2, v0, Ldgb/m4;->b:Z

    const-string v3, "stat.Core"

    const/4 v5, 0x0

    if-nez v2, :cond_1

    .line 13
    sget-boolean v1, Ldgb/z;->d:Z

    if-eqz v1, :cond_0

    const-string v1, "The service is not start up!"

    .line 14
    invoke-static {v3, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    :cond_0
    return v5

    :cond_1
    const-string v2, "! Please refer to api doc!"

    if-eqz v1, :cond_d

    .line 15
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v6

    if-nez v6, :cond_2

    goto/16 :goto_0

    .line 16
    :cond_2
    invoke-static {p2}, Ldgb/e;->a(I)Z

    move-result v6

    if-nez v6, :cond_4

    .line 17
    sget-boolean v1, Ldgb/z;->d:Z

    if-eqz v1, :cond_3

    .line 18
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "Invalid data policy: "

    invoke-virtual {v1, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v3, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    :cond_3
    return v5

    .line 19
    :cond_4
    invoke-static {p3}, Ldgb/g;->a(I)Z

    move-result v6

    if-nez v6, :cond_6

    .line 20
    sget-boolean v1, Ldgb/z;->d:Z

    if-eqz v1, :cond_5

    .line 21
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "Invalid report policy: "

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move v6, p3

    invoke-virtual {v1, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v3, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    :cond_5
    return v5

    :cond_6
    move v6, p3

    .line 22
    invoke-static/range {p4 .. p4}, Ldgb/h;->a(I)Z

    move-result v8

    if-nez v8, :cond_8

    .line 23
    sget-boolean v1, Ldgb/z;->d:Z

    if-eqz v1, :cond_7

    .line 24
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "Invalid priority: "

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move/from16 v8, p4

    invoke-virtual {v1, v8}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v3, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    :cond_7
    return v5

    :cond_8
    move/from16 v8, p4

    if-nez v7, :cond_a

    .line 25
    sget-boolean v1, Ldgb/z;->d:Z

    if-eqz v1, :cond_9

    const-string v1, "Invalid value which should be required."

    .line 26
    invoke-static {v3, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    :cond_9
    return v5

    .line 27
    :cond_a
    invoke-static {p2, v7}, Ldgb/f;->a(ILjava/lang/Object;)I

    move-result v9

    .line 28
    invoke-static {v9}, Ldgb/f;->a(I)Z

    move-result v10

    if-nez v10, :cond_c

    .line 29
    sget-boolean v1, Ldgb/z;->d:Z

    if-eqz v1, :cond_b

    .line 30
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "Invalid data type for data policy "

    invoke-virtual {v1, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v4, ": "

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 31
    invoke-virtual/range {p5 .. p5}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 32
    invoke-static {v3, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    :cond_b
    return v5

    .line 33
    :cond_c
    iget-object v2, v0, Ldgb/m4;->a:Landroid/content/Context;

    invoke-static {v2, p1}, Ldgb/k;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 34
    new-instance v10, Ldgb/k;

    const/4 v11, 0x0

    move-object v1, v10

    move v2, p3

    move v3, v9

    move v4, p2

    move/from16 v6, p4

    move-object/from16 v7, p5

    move-object v8, v11

    invoke-direct/range {v1 .. v8}, Ldgb/k;-><init>(IIILjava/lang/String;ILjava/lang/Object;Ljava/lang/String;)V

    .line 35
    iget-object v1, v0, Ldgb/m4;->a:Landroid/content/Context;

    invoke-static {v1}, Ldgb/n4;->a(Landroid/content/Context;)Ldgb/n4;

    move-result-object v1

    invoke-virtual {v1, v10}, Ldgb/n4;->a(Ldgb/k;)Z

    move-result v1

    return v1

    .line 36
    :cond_d
    :goto_0
    sget-boolean v4, Ldgb/z;->d:Z

    if-eqz v4, :cond_e

    .line 37
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "Invalid key: "

    invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v3, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    :cond_e
    return v5
.end method

.method public a(Ljava/lang/String;IILjava/lang/Object;)Z
    .locals 6

    const/4 v4, 0x3

    move-object v0, p0

    move-object v1, p1

    move v2, p2

    move v3, p3

    move-object v5, p4

    .line 11
    invoke-virtual/range {v0 .. v5}, Ldgb/m4;->a(Ljava/lang/String;IIILjava/lang/Object;)Z

    move-result p1

    return p1
.end method

.method public a(Ljava/lang/String;ILjava/lang/Object;)Z
    .locals 1

    const/4 v0, 0x1

    .line 10
    invoke-virtual {p0, p1, p2, v0, p3}, Ldgb/m4;->a(Ljava/lang/String;IILjava/lang/Object;)Z

    move-result p1

    return p1
.end method

.method public b()Z
    .locals 8

    .line 1
    invoke-static {}, Ldgb/o4;->a()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    new-instance v0, Ldgb/w;

    iget-object v1, p0, Ldgb/m4;->a:Landroid/content/Context;

    invoke-direct {v0, v1}, Ldgb/w;-><init>(Landroid/content/Context;)V

    invoke-static {v0}, Ldgb/b0;->a(Ljava/lang/Runnable;)Z

    .line 3
    :cond_0
    new-instance v0, Ldgb/u;

    const/4 v3, 0x0

    const/4 v4, 0x2

    const/4 v5, 0x1

    iget-object v1, p0, Ldgb/m4;->a:Landroid/content/Context;

    const-string v2, "alive"

    .line 4
    invoke-static {v1, v2}, Ldgb/k;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    const/4 v7, 0x1

    move-object v2, v0

    invoke-direct/range {v2 .. v7}, Ldgb/u;-><init>(IIILjava/lang/String;I)V

    const/4 v1, 0x1

    .line 5
    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {p0, v0, v1}, Ldgb/m4;->a(Ldgb/u;Ljava/lang/Object;)Z

    move-result v0

    return v0
.end method
